package com.gui.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gui.hospital.mapper.HospitalDepartmentMapper;
import com.gui.hospital.model.HospitalDepartment;

import java.util.List;

/**
 * Author:刘舒佳
 * Date:2024/8/23
 */
public interface HospitalDepartmentService extends IService<HospitalDepartment> {

    List<HospitalDepartment> getDepartmentByName(String name);

    /**
     * 根据上级科室id查询科室
     * @param pid
     * @return
     */
    List<HospitalDepartment> getDepartmentByPid(Integer pid);

    Page<HospitalDepartment> pageList(Integer page, Integer size, HospitalDepartment hospitalDepartment, HospitalDepartment hospitalDepartment1);
}
